package cn.chengpengper.rpc.test.spring.annotation.consumer.service.impl;

import cn.chengpengper.rpc.annotation.RpcReference;
import cn.chengpengper.rpc.test.api.RealMethodDemoService;
import cn.chengpengper.rpc.test.spring.annotation.consumer.service.ConsumerDemoService;
import org.springframework.stereotype.Service;

/**
 * @author chengpeng.hu
 */
@Service
public class ConsumerDemoServiceImpl implements ConsumerDemoService {

    @RpcReference(registryType = "nacos", registryAddress = "127.0.0.1:8848", loadBalanceType = "hash", group = "catwing", proxy = "cglib", timeout = 30000)
    private RealMethodDemoService realMethodDemoService;

    @Override
    public String hello(String name) {
        return realMethodDemoService.hello(name);
    }
}
